/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package janelas;

import Tabela.Lista;
import Tabela.ListaLoja;
import Tabela.ListaMarca;


/**
 *
 * @author Roger
 */
public class TelaInicial extends javax.swing.JFrame {

    /**
     * Creates new form TelaInicial
     */
    public TelaInicial() {
        initComponents();
        
    }

    /**
     * This method is called from within the constructor to initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is always
     * regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        jLabel1 = new javax.swing.JLabel();
        jMenuBar1 = new javax.swing.JMenuBar();
        menuNote = new javax.swing.JMenu();
        itemNoteG = new javax.swing.JMenuItem();
        itemLista = new javax.swing.JMenuItem();
        menuMarca = new javax.swing.JMenu();
        itemG = new javax.swing.JMenuItem();
        itemL = new javax.swing.JMenuItem();
        menuLoja = new javax.swing.JMenu();
        itemLojaG = new javax.swing.JMenuItem();
        itemLojaL = new javax.swing.JMenuItem();

        setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);

        jLabel1.setFont(new java.awt.Font("Comic Sans MS", 2, 36)); // NOI18N
        jLabel1.setForeground(new java.awt.Color(204, 0, 0));
        jLabel1.setText("Black Friday");

        menuNote.setText("Informações do Notebook");

        itemNoteG.setText("Gerenciar");
        itemNoteG.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                itemNoteGActionPerformed(evt);
            }
        });
        menuNote.add(itemNoteG);

        itemLista.setText("Lista");
        itemLista.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                itemListaActionPerformed(evt);
            }
        });
        menuNote.add(itemLista);

        jMenuBar1.add(menuNote);

        menuMarca.setText("Marca");

        itemG.setText("Gerenciar");
        itemG.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                itemGActionPerformed(evt);
            }
        });
        menuMarca.add(itemG);

        itemL.setText("Listar");
        itemL.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                itemLActionPerformed(evt);
            }
        });
        menuMarca.add(itemL);

        jMenuBar1.add(menuMarca);

        menuLoja.setText("Loja");

        itemLojaG.setText("Gerenciar");
        itemLojaG.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                itemLojaGActionPerformed(evt);
            }
        });
        menuLoja.add(itemLojaG);

        itemLojaL.setText("Listar");
        itemLojaL.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                itemLojaLActionPerformed(evt);
            }
        });
        menuLoja.add(itemLojaL);

        jMenuBar1.add(menuLoja);

        setJMenuBar(jMenuBar1);

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
        getContentPane().setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()
                .addContainerGap(121, Short.MAX_VALUE)
                .addComponent(jLabel1, javax.swing.GroupLayout.PREFERRED_SIZE, 261, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(118, 118, 118))
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addGap(79, 79, 79)
                .addComponent(jLabel1, javax.swing.GroupLayout.PREFERRED_SIZE, 103, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(146, Short.MAX_VALUE))
        );

        pack();
    }// </editor-fold>//GEN-END:initComponents

    private void itemGActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_itemGActionPerformed
        MarcaGUI m = new MarcaGUI();
        m.setDefaultCloseOperation(DISPOSE_ON_CLOSE);
        m.setVisible(true); 
    }//GEN-LAST:event_itemGActionPerformed

    private void itemLActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_itemLActionPerformed
        ListaMarca l = new ListaMarca();
        l.setDefaultCloseOperation(DISPOSE_ON_CLOSE);
        l.setVisible(true);
    }//GEN-LAST:event_itemLActionPerformed

    private void itemLojaGActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_itemLojaGActionPerformed
        LojaGUI l = new LojaGUI();
        l.setDefaultCloseOperation(DISPOSE_ON_CLOSE);
        l.setVisible(true);
    }//GEN-LAST:event_itemLojaGActionPerformed

    private void itemLojaLActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_itemLojaLActionPerformed
        ListaLoja l = new ListaLoja();
        l.setDefaultCloseOperation(DISPOSE_ON_CLOSE);
        l.setVisible(true);
    }//GEN-LAST:event_itemLojaLActionPerformed

    private void itemListaActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_itemListaActionPerformed
        Lista l = new Lista();
        l.setDefaultCloseOperation(DISPOSE_ON_CLOSE);
        l.setVisible(true);
    }//GEN-LAST:event_itemListaActionPerformed

    private void itemNoteGActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_itemNoteGActionPerformed
        Notebook l = new Notebook();
        l.setDefaultCloseOperation(DISPOSE_ON_CLOSE);
        l.setVisible(true);
    }//GEN-LAST:event_itemNoteGActionPerformed

    /**
     * @param args the command line arguments
     */
    public static void main(String args[]) {
        /* Set the Nimbus look and feel */
        //<editor-fold defaultstate="collapsed" desc=" Look and feel setting code (optional) ">
        /* If Nimbus (introduced in Java SE 6) is not available, stay with the default look and feel.
         * For details see http://download.oracle.com/javase/tutorial/uiswing/lookandfeel/plaf.html 
         */
        try {
            for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) {
                if ("Nimbus".equals(info.getName())) {
                    javax.swing.UIManager.setLookAndFeel(info.getClassName());
                    break;
                }
            }
        } catch (ClassNotFoundException ex) {
            java.util.logging.Logger.getLogger(TelaInicial.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (InstantiationException ex) {
            java.util.logging.Logger.getLogger(TelaInicial.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (IllegalAccessException ex) {
            java.util.logging.Logger.getLogger(TelaInicial.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (javax.swing.UnsupportedLookAndFeelException ex) {
            java.util.logging.Logger.getLogger(TelaInicial.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        }
        //</editor-fold>

        /* Create and display the dialog */
        java.awt.EventQueue.invokeLater(new Runnable() {
            public void run() {
                new TelaInicial().setVisible(true);
            }
        });
    }

    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JMenuItem itemG;
    private javax.swing.JMenuItem itemL;
    private javax.swing.JMenuItem itemLista;
    private javax.swing.JMenuItem itemLojaG;
    private javax.swing.JMenuItem itemLojaL;
    private javax.swing.JMenuItem itemNoteG;
    private javax.swing.JLabel jLabel1;
    private javax.swing.JMenuBar jMenuBar1;
    private javax.swing.JMenu menuLoja;
    private javax.swing.JMenu menuMarca;
    private javax.swing.JMenu menuNote;
    // End of variables declaration//GEN-END:variables
}
